<HTML>
<HEAD>
<!-- Created by texi2html 1.56k from gzip.texi on 9 August 2001 -->

<TITLE>Gzip User's Manual - 2. Sample Output</TITLE>
</HEAD>
<BODY>
Go to the <A HREF="gzip_1.html">first</A>, <A HREF="gzip_2.html">previous</A>, <A HREF="gzip_4.html">next</A>, <A HREF="gzip_9.html">last</A> section, <A HREF="gzip_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC5" HREF="gzip_toc.html#TOC5">2. Sample Output</A></H1>
<P>
<A NAME="IDX2"></A>


<P>
Here are some realistic examples of running <CODE>gzip</CODE>.


<P>
This is the output of the command <SAMP>`gzip -h'</SAMP>:



<PRE>
gzip 1.2.4 (18 Aug 93)
usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
 -c --stdout      write on standard output, keep original files unchanged
 -d --decompress  decompress
 -f --force       force overwrite of output file and compress links
 -h --help        give this help
 -l --list        list compressed file contents
 -L --license     display software license
 -n --no-name     do not save or restore the original name and time stamp
 -N --name        save or restore the original name and time stamp
 -q --quiet       suppress all warnings
 -r --recursive   operate recursively on directories
 -S .suf  --suffix .suf     use suffix .suf on compressed files
 -t --test        test compressed file integrity
 -v --verbose     verbose mode
 -V --version     display version number
 -1 --fast        compress faster
 -9 --best        compress better
 file...          files to (de)compress. If none given, use standard input.
</PRE>

<P>
This is the output of the command <SAMP>`gzip -v texinfo.tex'</SAMP>:



<PRE>
texinfo.tex:             71.6% -- replaced with texinfo.tex.gz
</PRE>

<P>
The following command will find all <CODE>gzip</CODE> files in the current
directory and subdirectories, and extract them in place without
destroying the original:



<PRE>
find . -name '*.gz' -print | sed 's/^\(.*\)[.]gz$/gunzip &#60; "&#38;" &#62; "\1"/' | sh
</PRE>

<P><HR><P>
Go to the <A HREF="gzip_1.html">first</A>, <A HREF="gzip_2.html">previous</A>, <A HREF="gzip_4.html">next</A>, <A HREF="gzip_9.html">last</A> section, <A HREF="gzip_toc.html">table of contents</A>.
</BODY>
</HTML>
